const express = require("express");
const app = express();
const route = require("./04.express的路由管理");
//添加路由前缀
// console.log(route);

// 中间件会影响位置
app.use((req, res, next) => {
  console.log("中间件");
  next();
});
app.use(route);

app.listen(80, function () {
  console.log("express server running at http://127.0.0.1");
});
